﻿<controls:ChildWindow x:Class="SpeedTestReports.RegistrationForm"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="350" Height="300" 
           Title="Register - All Fields Are Required">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="140"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="60"/>
        </Grid.ColumnDefinitions>
        <TextBlock Margin="4,4,8,4" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Full Name</TextBlock>
        <TextBlock Margin="4,4,8,4" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Email</TextBlock>
        <TextBlock Margin="4,4,8,4" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">User Name</TextBlock>
        <TextBlock Margin="4,4,8,4" Grid.Row="3" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Password</TextBlock>
        <TextBlock Margin="4,4,8,4" Grid.Row="4" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Confirm Password</TextBlock>
        <TextBox x:Name="txtName" MaxLength="40" Width="150" Height="23" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBox>
        <TextBox x:Name="txtEmail" MaxLength="60" Width="150" Height="23" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBox>
        <TextBox x:Name="txtUserName" MaxLength="40" Width="150" Height="23" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBox>
        <PasswordBox x:Name="txtPassword" MaxLength="40" Width="150" Height="23" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></PasswordBox>
        <PasswordBox x:Name="txtConfirmPwd" MaxLength="40" Width="150" Height="23" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></PasswordBox>
        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3">
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" Margin="10"/>
            <Button x:Name="RegisterButton" Content="Register" Click="RegisterButton_Click" Width="75" Height="23" Margin="10"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>